<?php
/**
 * Text element
 *
 */
class ArrowFormPassword extends ArrowFormField{
	
	public function configure(){
		parent::configure();	
		$this->addProperties(array(
				"length" => false,
				"rexp" => false,
		));
	}	
	
	public function validate( $proposedValue ){
		return true;
	}
	
	public function generateOutput(){
		$attribuites = array();
		$attribuites["name"] = $this->getHtmlName();
		$attribuites["value"] = $this->getValue();
		return '<input type="password" '.$this->genTagsFromArray($attribuites).' '.$this->addExternal().'/>';
	}

}
?>